package com.sdry.system.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdry.system.entity.SysPosition;
import com.sdry.system.mapper.PositionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: info_sdry
 * @description: 岗位信息
 * @author: cb
 * @create: 2020-02-18 11:48
 **/
@Service
@Transactional(rollbackFor = Exception.class)
public class PositionServiceImpl extends ServiceImpl<PositionMapper, SysPosition> implements PositionService{
    @Autowired
    private PositionMapper positionMapper;

    @Override
    public boolean deletePosition(Long postId) {
        Integer effect = positionMapper.deletePosition(postId);
        if (effect == 1) {
            return true;
        }
        return false;
    }
}
